﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Bifrost;

namespace CLIENT_EMR.TEMPLATE
{
    public partial class frmWebShowItem : DevComponents.DotNetBar.Metro.MetroForm
    {
        public static string ID = "";
        public static string TName = "";
        public TreeNode parentNode;


        public frmWebShowItem(string nid,TreeNode tnnode)
        {
            InitializeComponent();
            ID = nid;
            parentNode = tnnode;

            if (parentNode == null)
            {
                lblMark.Text = "当前节点为文书级节点";
            }
            else
            {
                lblMark.Text = "当前节点为‘"+parentNode.Text+"’的内容子项目";
            }
        }

        private void frmWebShowItem_Load(object sender, EventArgs e)
        {

        }

        private void btnSure_Click(object sender, EventArgs e)
        {
            if (ID == "")
            {
                ID=App.GenId().ToString();
            }
            TName = txtName.Text;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            ID = "";
            TName = "";
            this.Close();
        }
    }
}
